export default function tableColConfig() {
  return [
    {
      prop: 'number',
      label: '工单编号',
      noChecked: true,
      colConfig: {
        minWidth: 200,
        fixed: 'left',
      }
    },
    {
      prop: 'workorderProcessStatusLabel',
      label: '工单进度',
      filterAble: true,
      noChecked: true,
      searchConfig: {name: 'workorderProcessStatusId', type: 'select', dict: 'workorderProcessStatus', multiple: true},
      colConfig: {minWidth: 110, sortable: false, comp: 'workSchedule', fixed: 'left'}
    },
    {
      prop: 'statusLabel',
      label: '工单状态',
      filterAble: true,
      noChecked: true,
      searchConfig: {name: 'statusId', type: 'select', dict: 'workorderStatus', multiple: true},
      colConfig: {minWidth: 95, sortable: false, comp: 'workState', fixed: 'left'}
    },
    {prop: 'materialNumber', label: '物料编码', colConfig: {minWidth: 115}},
    {prop: 'materialName', label: '物料名称', colConfig: {minWidth: 120, align: 'left'}},
    {prop: 'workshopName', label: '部门名称', colConfig: {minWidth: 95}},
    {
      prop: 'priorityTypeLabel',
      label: '优先级',
      filterAble: true,
      searchConfig: {name: 'priorityId', type: 'select', dict: 'priorityType'},
      colConfig: {minWidth: 120, comp: 'priority', sortable: false}
    },
    {prop: 'drawingNumber', label: '图号', colConfig: {minWidth: 100}},
    {prop: 'taskNumber', label: '任务号', colConfig: {minWidth: 200}},
    {prop: 'productNumber', label: '产品型号', colConfig: {minWidth: 110}},
    {prop: 'productName', label: '产品名称', colConfig: {minWidth: 110, align: 'left'}},
    {prop: 'batchNumber', label: '批次号', colConfig: {minWidth: 110}},
    {prop: 'unitedNumber', label: '统一号', colConfig: {minWidth: 120}},
    {prop: 'planStartTime', label: '计划开始时间', searchConfig: {type: 'date'}, colConfig: {minWidth: 120, formatToDay: true}},
    {prop: 'planEndTime', label: '计划完成时间', searchConfig: {type: 'date'}, colConfig: {minWidth: 120, formatToDay: true}},
    {
      prop: 'isMonitoredLabel',
      label: '重点监控',
      searchConfig: {name: 'isMonitoredId', type: 'select', dict: 'booleanType'},
      colConfig: {minWidth: 95, comp: 'boolType', boolTypeLabel: 'isMonitoredLabel', boolTypeValue: 'isMonitoredValue'}
    },
    {prop: 'singleQuantity', label: '单套产品数量', noSearch: true, colConfig: {minWidth: 120}},
    {prop: 'planQuantity', label: '数量', noSearch: true, colConfig: {minWidth: 65}},
    {prop: 'spiltQuantity', label: '已拆分数量', noSearch: true, colConfig: {minWidth: 115}},
    {prop: 'groupType', label: '物料组别', colConfig: {minWidth: 95, sortable: false}},
    {
      prop: 'sourceLabel',
      label: '工单来源',
      searchConfig: {name: 'sourceId', type: 'select', dict: 'workorderSource'},
      colConfig: {minWidth: 95}
    },
    {
      prop: 'trackDemandLabel',
      label: '追溯要求',
      searchConfig: {name: 'trackDemandId', type: 'select', dict: 'trackDemand'},
      colConfig: {minWidth: 95}
    },
    {
      prop: 'workorderTypeLabel',
      label: '工单类型',
      searchConfig: {name: 'typeId', type: 'select', dict: 'workorderType'},
      colConfig: {minWidth: 95}
    },
    {
      prop: 'taskTypeLabel',
      label: '任务类别',
      searchConfig: {name: 'taskTypeId', type: 'select', dict: 'taskType'},
      colConfig: {minWidth: 110}
    },
    {
      prop: 'isMTSLabel',
      label: '库存式生产',
      searchConfig: {name: 'isMTSId', type: 'select', dict: 'booleanType'},
      colConfig: {minWidth: 115, comp: 'boolType', boolTypeLabel: 'isMTSLabel', boolTypeValue: 'isMTSValue'}
    },
    {prop: 'remarks', label: '备注', noSearch: true, colConfig: {minWidth: 100, sortable: false}}
  ]
}
